package cn.senjoeson.timedowner.base;

import android.app.Application;
import android.content.Context;

/**
 * Created by senjoeson on 2017/12/23.
 */

public class MyApplication extends Application {
    private static Context mContext;

    /**
     * 得到上下文
     *
     * @return
     */
    public static Context getContext() {
        return mContext;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        //上下文
        mContext = getApplicationContext();
       // GreenDaoManager.getInstance();
    }
}
